import java.util.Arrays;
import java.util.Stack;

class Solution {

    public int removeElement(int[] nums, int val) {
        int len = nums.length;
        int[] nums2 = new int[len];
        int count = 0;
        for (int i = 0; i < len; i++) {
            if (nums[i] != val) {
                nums2[count] = nums[i];
                count++;
            }
        }
        System.out.println(Arrays.toString(nums2));
        return count;
    }

    public boolean IsPopOrder (int[] pushV, int[] popV) {
        Stack<Integer>

        return true;
    }
}